<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }
        
        ul {
            width: 800px;
            height: 350px;
            border: 2px black solid;
            padding: 20px;
            margin: 10px;
            text-align: center;
        }
        
        li {
            list-style: none;
            float: left;
            margin-left: 20px;
            margin-top: 20px;
        }
        
        img {
            width: 165px;
            height: 130px;
            border-radius: 5%;
        }
        
        .box {
            border: 1px black solid;
            padding-left: 2px;
            padding-right: 10px;
            padding-top: 2px;
            padding-bottom: 2px;
            border-radius: 5%;
        }
    </style>
</head>

<body>
    <ul>
        <li class="box"><img src="1.jpg" alt=""></li>
        <li class="box"><img src="2.jpg" alt=""></li>
        <li class="box"><img src="3.jpg" alt=""></li>
        <li class="box"><img src="4.jpg" alt=""></li>
        <li class="box"><img src="5.jpg" alt=""></li>
        <li class="box"><img src="6.jpg" alt=""></li>
        <li class="box"><img src="7.png" alt=""></li>
        <li class="box"><img src="8.png" alt=""></li>
    </ul>
</body>

</html>